/*
 * @Author: Aro
 * @Date: 2024-01-28 22:41:51
 */
import 'package:fluro/fluro.dart';
import 'package:flutter_baseui/routers/i_fluro_router.dart';

import 'package:flutter_baseui/routers/screen_routers/component_screen_router.dart';
import 'package:flutter_baseui/routers/screen_routers/home_screen_router.dart';
import 'package:flutter_baseui/routers/screen_routers/network_screen_router.dart';
import 'package:flutter_baseui/routers/screen_routers/router_screen_router.dart';

class Fluros {
  static List<IFluroRouter> routersList = [];
  static FluroRouter router = FluroRouter();

  static void initRouters() {
    routersList.clear();
    routersList.add(HomeScreenRouter());
    routersList.add(ComponentScreenRouter());
    routersList.add(RouterScreenRouter());
    routersList.add(NetworkScreenRouter());

    for (var r in routersList) {
      r.initRouter(router);
    }
  }
}
